package com.zl.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户地址表
 */
public class UserAddress {
    private Integer id;
    private Integer userId;
    private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private Integer isDefault;//是否为默认地址 1是 0否
    private String remark;//备注

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
